(function () {
    function resize() {
        var width = Math.min(window.innerWidth, 750) / 750 * 100;
        document.documentElement.style.fontSize = width + "px";
        document.documentElement.setAttribute('data-dpr', window.devicePixelRatio);
    }

    window.addEventListener('resize', function () {
        resize();
    });

    resize();

    document.documentElement.style.height = window.innerHeight + 'px';
})()